package cn.le.api;

import cn.le.bean.util.ResponseFactory;
import cn.le.service.ImUserService;
import cn.le.bean.dto.ImUserDTO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Api(value = "im用户登录")
@RequestMapping(value = "/imUser/")
public class ImUserApi {

    @Autowired
    private ImUserService imUserService;

    @RequestMapping(value = "login",method= RequestMethod.POST)
    @ApiModelProperty(value = "im用户登录",notes = "im用戶登录")
    public Object login(@RequestBody ImUserDTO imUserDTO){
         imUserService.login(imUserDTO);
         return ResponseFactory.ok();
    }

}
